<template>
  <div class="cmpty-container">
    <Icon :type="type"/>
    <div class="text">
      {{text}}
    </div>
  </div>
</template>

<script>
import Icon from "@/components/Iconfont";

export default {
  components: {
    Icon,
  },
  props: {
    text: {
      type: String,
      default: "无数据"
    }
  },
  data() {
    return {
      type: "empty",
    }
  }
}
</script>

<style lang="less" scoped>
@import "~@/styles/var.less";
@import "~@/styles/mixin.less";
  .cmpty-container {
    .sel-center();
    .text {
      margin-top: 20px;
      color: @lightWords;
      font-weight: 600;
      text-align: center;
    }
  }
  .iconfont-container {
    font-size: 100px;
    color: @lightWords;
  }
</style>